package com.ssy.bus.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author ssy
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("bus_case")
public class Case implements Serializable {
    private static final long serialVersionUID = -1539738416148470579L;

    private String id;

    private String outpatientId;

    private Integer pantientId;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date morbidity;

    private Integer receiveType;

    private String complaint;

    private String diagnosisInfo;

    private String proposal;

    private String doctorRemark;

    private Integer isGrantDrug;

    @TableField(exist = false)
    private String depName;

    @TableField(exist = false)
    private String doctorName;

    @TableField(exist = false)
    private String patientName;

}
